export default {
    namespaced: true,  // 必须写 开启
    state: {
        isLogin: localStorage.getItem('token') || null //判断用户是否登录的状态
    },
    getters: {
    },
    mutations: {
        getlogin(state, token) {
            state.isLogin = token

            localStorage.setItem('token', token)
        }
    },
    actions: {
        getlogin(cxt, token) {
            cxt.commit("getlogin", token)
        }
    },
}